package com.iocup.keybastion.core.matching.impl;


import com.iocup.keybastion.context.WebContextHolder;
import com.iocup.keybastion.core.matching.Matcher;

/**
 * @author xyjxust
 * @create 2022/3/1 17:43
 **/
public class XSSProtectionMatcher implements Matcher {

    @Override
    public boolean matches(WebContextHolder webContextHolder) {
        webContextHolder.setResponseHeader("X-XSS-Protection", "1; mode=block");
        return true;
    }
}
